<template>
  <div class="view-list">
    <food-list-sub
      v-for="item of foodDatas"
      :key="item.id"
      :data="item"
    ></food-list-sub>
  </div>
</template>

<script>
import FoodListSub from "./Sub.vue";
export default {
  name: "FoodList",
  components: {
    FoodListSub
  },
  props: {
    foodDatas: Array
  }
};
</script>

<style lang="scss" scoped></style>
